<%--
  Created by IntelliJ IDEA.
  User: WuLiangHang
  Date: 2021/4/20
  Time: 9:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<%--spring:message标签 用于在JSP页面中显示国际化信息 --%>
<a href="i18nTest?locale=zh_CN"><spring:message code="language.cn"/> </a>
<a href="i18nTest?locale=en_US"><spring:message code="language.en"/> </a>
<br/>
<spring:message code="first"/><br/>
<a href="my/second"><spring:message code="second"/> </a>
</body>

</html>